package com.hddf.project.auth.dao;

import java.util.List;

import org.hibernate.Session;

import com.hddf.project.auth.pojos.Authority;


public interface AuthorityDao {
	
	public boolean save(Authority auth,Session s);
	
	public boolean delete(int id,Session s);
	
	public boolean update(Authority auth,Session s);
	
	public Authority getAuthByName(String name,Session s);
	
	public Authority getAuthById(int id,Session s);
	
	public boolean setAuthOn(int id,Session s);
	
	public boolean setAuthOff(int id,Session s);
	
	public List<Authority> getAuthorities(String start,String limit,int state,Session s);
	
	public int getAuthoritiesTotalCount(int state,Session s);

}
